package com.ruoyi.behindTreatment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 就诊总览对象 doc_treatment
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class yyyTreatment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 就诊Id */
    private Long treatId;

    /** 预约id */
    @Excel(name = "预约id")
    private Long appId;

    /** 诊断描述 */
    @Excel(name = "诊断描述")
    private String treatInfo;

    /** 药方Id */
    @Excel(name = "药方Id")
    private String prescriptId;

    /** 就诊状态 */
    @Excel(name = "就诊状态")
    private String treatState;



    /** 就诊时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "就诊时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date treatTime;

    // 预约相关字段
    private Integer userId;         // 患者ID
    private Integer doctorId;       // 医生ID
    private String appInfo;         // 预约描述
    private String appAddress;      // 预约地址
    private Date appDateTime;       // 预约时间

    // 名称字段
    private String userName;        // 患者姓名
    private String doctorName;      // 医生姓名

// 记得添加对应的getter和setter方法

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getAppInfo() {
        return appInfo;
    }

    public void setAppInfo(String appInfo) {
        this.appInfo = appInfo;
    }

    public String getAppAddress() {
        return appAddress;
    }

    public void setAppAddress(String appAddress) {
        this.appAddress = appAddress;
    }

    public Date getAppDateTime() {
        return appDateTime;
    }

    public void setAppDateTime(Date appDateTime) {
        this.appDateTime = appDateTime;
    }

    public void setTreatId(Long treatId) 
    {
        this.treatId = treatId;
    }

    public Long getTreatId() 
    {
        return treatId;
    }

    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }

    public void setTreatInfo(String treatInfo) 
    {
        this.treatInfo = treatInfo;
    }

    public String getTreatInfo() 
    {
        return treatInfo;
    }

    public void setPrescriptId(String prescriptId)
    {
        this.prescriptId = prescriptId;
    }

    public String getPrescriptId()
    {
        return prescriptId;
    }

    public void setTreatState(String treatState) 
    {
        this.treatState = treatState;
    }

    public String getTreatState() 
    {
        return treatState;
    }

    public void setTreatTime(Date treatTime) 
    {
        this.treatTime = treatTime;
    }

    public Date getTreatTime() 
    {
        return treatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("treatId", getTreatId())
            .append("appId", getAppId())
            .append("treatInfo", getTreatInfo())
            .append("prescriptId", getPrescriptId())
            .append("treatState", getTreatState())
            .append("treatTime", getTreatTime())
            .toString();
    }
}
